package com.share.example.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.example.stock.model.db.StockBaseInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author author
 * @since 2023-06-10
 */
public interface StockBaseInfoMapper extends BaseMapper<StockBaseInfo> {

    int insertbatch(@Param("list") List<StockBaseInfo> list);

    int deleteRepeatRetainMinId();

    int updateByCode(@Param("record") StockBaseInfo record);

    Integer getBasePullCountByCode(String code);

    Integer getDayPullCountByCode(String code);

    int appendPlatesByCode(@Param("record") StockBaseInfo record);
}
